package com.stop.action;

import com.stop.bean.User;
import com.stop.dao.UserDao;

public class FindPassword {
	private UserDao dao;
	private User user;
	private String answer1;
	private String answer2;

	public String getAnswer1() {
		return answer1;
	}

	public void setAnswer1(String answer1) {
		this.answer1 = answer1;
	}

	public String getAnswer2() {
		return answer2;
	}

	public void setAnswer2(String answer2) {
		this.answer2 = answer2;
	}

	public UserDao getDao() {
		return dao;
	}

	public void setDao(UserDao dao) {
		this.dao = dao;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String execute() throws Exception {

		if (answer1.equals(answer2)) {
			return "success";
		} else
			return "error";
	}

}
